//
//  asasa.m
//  runtimeStudy
//
//  Created by PF on 2022/1/6.
//

#import <Foundation/Foundation.h>
static NSInteger p1 = 10;
NSInteger p2 = 11;
void mains(){
    static NSInteger p3 = 10;
    NSInteger p4 = 11;
    __block NSInteger p5 = 12;
    __block NSObject *p6 = [NSObject new];
    NSObject *p7 = [NSObject new];
    __weak NSObject *p8 = [NSObject new];
    void(^block)(void)=^(){
        p1 = 1;
        p2 = 1;
        p3 = 1;
        NSLog(@"%ld",p4);
        p5 = 1;
        NSLog(@"%@",p6);
        p6 = nil;
        NSLog(@"%@",p7);
        NSLog(@"%@",p8);
    };
    [block copy];
    block();
}
